Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert zinc to 1.9.6 to fix incremental compilation in the build #3751

Closed
wants to merge 11 commits into from

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Oct 16, 2024

Fixes #3748. Workaround for sbt/zinc#1461 (comment) that disables incremental compilation in multi-file builds

With this PR, whitespace changes to build.mill recompile 1 build file in about 5 seconds, whereas without this PR they would recompile 20 build file taking 10 seconds. Presumably the difference would be larger on larger projects

Updates a number of tests to verify that incremental compilation in build files works correctly

Needed to downgrade Mill's own Scala version to 2.13.13 for compatibility concerns, but this doesn't affect projects built using Mill which can continue to use any Scala version. We may need to find some fix before upgrading to Scala 3.

Not terribly happy with the downgrade. Going to just leave this open for now since it's not a blocker for anything, and we may receive a fix from upstream which would allow us to tighten up the tests while negate the need for this downgrade

@lihaoyi lihaoyi marked this pull request as draft October 16, 2024 04:02
@lihaoyi
Copy link
Member Author

lihaoyi commented Oct 19, 2024

closing in favor of #3773

@lihaoyi lihaoyi closed this Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate why changing the body of a task or method causes downstream files to re-compile
1 participant